<%-- 
    Document   : danhmucsanpham
    Created on : Sep 28, 2011, 11:24:18 AM
    Author     : Administrator
--%>

<%@page import="java.util.List"%>
<%@page import="hibernate.pojo.Loaisanpham"%>
<%@page import="org.hibernate.HibernateException"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Zing Deal | Danh mục sản phẩm</title>
<link href="DealZing_files/6aad5646.css" rel="stylesheet" type="text/css" />
</head>

<body>       
<ul>
    <li>		
        <a href="homecontroller?action=view"><img src="images/iconloaisanpham/iconall.png" alt="" /></a>
        <a href="homecontroller?action=view" class="DCLabel">Tất cả</a> 		
    </li>
<%
    try
    {
        List<Loaisanpham> arrLoaiSanPham = (List<Loaisanpham>)session.getAttribute("DanhSachLoaiSanPham");
        if(arrLoaiSanPham!=null)
        {
            for(int i=0; i<arrLoaiSanPham.size(); i++)
            {
                Loaisanpham loaisanpham = arrLoaiSanPham.get(i);
                          
%>    
    <li>
        <a href="catalogcotroller?action=listdealbycatalog&amp;catalogtype=<%=loaisanpham.getTenTrang()%>"><img src="<%=loaisanpham.getIconLoaiSanPham()%>" alt="" /></a>
        <a href="catalogcotroller?action=listdealbycatalog&amp;catalogtype=<%=loaisanpham.getTenTrang()%>" class="DCLabel"><%=loaisanpham.getTenLoaiSanPham()%></a>
    </li>
<%
            }
        }
    }
    catch(HibernateException ex)
    {
        out.println(ex);
    }
%>
</ul>   
</body>
</html>

